/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tesam.gedeon.service;

import com.tesam.gedeon.entity.Provider;
import java.util.List;

/**
 *
 * @author joelpacheco
 */
public interface ProviderService {
    
    public int save(com.tesam.gedeon.entity.Provider provider);

    public int delete(com.tesam.gedeon.entity.Provider provider);

    public int update(com.tesam.gedeon.entity.Provider provider);

    public com.tesam.gedeon.entity.Provider getById(int providerId);

    public List<com.tesam.gedeon.entity.Provider> getAll();

    public List<com.tesam.gedeon.entity.Provider> getAllByLimit(int startLimit, int endLimit, String dataToSort, String directionOfOrder);

    public List<com.tesam.gedeon.entity.Provider> searchByName(com.tesam.gedeon.entity.Provider provider, int satartLimit, int endLimit);

    public int getCountSearchByName(com.tesam.gedeon.entity.Provider provider);

    public int getCountTotal();

    public String getJsonDataFromArrayList(List<Provider> listaDeProvider, int cantidadRegistros, int moduleId);
    
}
